package com.fire.market.order.repository.impl;

import com.fire.component.extension.Assert;
import com.fire.market.order.entity.OrderInfoDo;
import com.fire.market.order.mapper.OrderInfoDoMapper;
import com.fire.market.order.repository.OrderRepository;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class OrderRepositoryImpl implements OrderRepository {
    @Resource
    private OrderInfoDoMapper orderInfoDoMapper;
    @Override
    public void insertOrder(OrderInfoDo orderInfoDo) {
        Assert.notNull(orderInfoDo, "orderInfoDo is null");
        orderInfoDoMapper.insertSelective(orderInfoDo);
    }

}
